<?php

if (!defined('FAMOUS_ROOT')) {
    exit('Access Denied');
}


$_config = array();

// ----------------------------  CONFIG DB  ----------------------------- //
$_config['db']['1']['dbhost'] = '127.0.0.1';
$_config['db']['1']['dbuser'] = 'root';
$_config['db']['1']['dbpw'] = '';
$_config['db']['1']['dbcharset'] = 'utf8';
$_config['db']['1']['pconnect'] = '0';
$_config['db']['1']['dbname'] = 'famous';
$_config['db']['1']['tablepre'] = 'famous_';
$_config['db']['1']['log'] = 0;


// --------------------------  CONFIG MEMORY  --------------------------- //
$_config['memory']['prefix'] = 'DP9Jz1_';
$_config['memory']['eaccelerator'] = 1;
$_config['memory']['xcache'] = 1;
$_config['memory']['log'] = 0;
$_config['memory']['memcache']['server'] = '127.0.0.1';
$_config['memory']['memcache']['port'] = 11211;
$_config['memory']['memcache']['pconnect'] = 0;
$_config['memory']['memcache']['timeout'] = 1;

// --------------------------  CONFIG SERVER  --------------------------- //
$_config['server']['id'] = 1;

// -------------------------  CONFIG DOWNLOAD  -------------------------- //
$_config['download']['readmod'] = 2;
$_config['download']['xsendfile']['type'] = '0';
$_config['download']['xsendfile']['dir'] = '/down/';

// ---------------------------  CONFIG CACHE  --------------------------- //
$_config['cache']['type'] = 'sql';

// --------------------------  CONFIG OUTPUT  --------------------------- //
$_config['output']['charset'] = 'utf-8';
$_config['output']['forceheader'] = 1;
$_config['output']['gzip'] = '0';
$_config['output']['tplrefresh'] = 1;
$_config['output']['language'] = 'zh_cn';
$_config['output']['staticurl'] = '/static/'; // 静态URL
$_config['output']['dataurl'] = 'http://famousgolds.cn/data/'; // 附件URL
$_config['output']['ajaxvalidate'] = '0';

// --------------------------  CONFIG COOKIE  --------------------------- //
$_config['cookie']['cookiepre'] = 'j3r5_';
$_config['cookie']['cookiedomain'] = '';
$_config['cookie']['cookiepath'] = '/';

// --------------------------  CONFIG SESSION  --------------------------- //
$_config['session']['expire'] = 3600;
$_config['session']['gcmaxlifetime'] = 3600;


// -------------------------  CONFIG SECURITY  -------------------------- //
$_config['security']['authkey'] = 'qwdcg340Khjdye';
$_config['security']['urlxssdefend'] = 1;
$_config['security']['attackevasive'] = '0';
$_config['security']['querysafe']['status'] = 1;
$_config['security']['querysafe']['dfunction']['0'] = 'load_file';
$_config['security']['querysafe']['dfunction']['1'] = 'hex';
$_config['security']['querysafe']['dfunction']['2'] = 'substring';
$_config['security']['querysafe']['dfunction']['3'] = 'if';
$_config['security']['querysafe']['dfunction']['4'] = 'ord';
$_config['security']['querysafe']['dfunction']['5'] = 'char';
$_config['security']['querysafe']['daction']['0'] = 'intooutfile';
$_config['security']['querysafe']['daction']['1'] = 'intodumpfile';
$_config['security']['querysafe']['daction']['2'] = 'unionselect';
$_config['security']['querysafe']['daction']['3'] = '(select';
$_config['security']['querysafe']['dnote']['0'] = '/*';
$_config['security']['querysafe']['dnote']['1'] = '*/';
$_config['security']['querysafe']['dnote']['2'] = '#';
$_config['security']['querysafe']['dnote']['3'] = '--';
$_config['security']['querysafe']['dnote']['4'] = '"';
$_config['security']['querysafe']['dlikehex'] = 1;
$_config['security']['querysafe']['afullnote'] = 1;

// -------------------------  CONFIG VERSION  -------------------------- //
$_config['setting']['version'] = '1.0.0';
$_config['setting']['release'] = '1.0.1';

// -------------------------  CONFIG Setting  -------------------------- //
$_config['setting']['siteurl']    = 'http://famous.cn/';
$_config['setting']['attachdir']  = './data/attachment/';
$_config['setting']['timezone']   = 8; // 北京时间
$_config['setting']['timeoffset']   = 8; // 时差




//邮件服务器的配置
$_config['setting']['mail'] = array('mailsend' => 2, 'maildelimiter' => 1, 'mailusername' => 1, 'sendmail_silent' => 1, 'auth' => 1, 'port' => 25, 'server' => 'smtp.exmail.qq.com', 'from' => 'hongfei@pp.cc', 'auth_username' => 'hongfei@pp.cc', 'auth_password' => 'ppcc2011');
$_config['setting']['sitename'] = 'famousgolds';
$_config['setting']['adminmail'] = '727271755@qq.cc';

// 图像处理设置
$_config['setting']['imagelib'] = 0;
$_config['setting']['imageimpath'] = '';
$_config['setting']['thumbquality'] = 100;


$_config['admincp']['founder']			= '1';		// 站点创始人：拥有站点管理后台的最高权限，每个站点可以设置 1名或多名创始人
// 可以使用uid，也可以使用用户名；多个创始人之间请使用逗号“,”分开;
$_config['admincp']['forcesecques']		= 0;		// 管理人员必须设置安全提问才能进入系统设置 0=否, 1=是[安全]
$_config['admincp']['checkip']			= 1;		// 后台管理操作是否验证管理员的 IP, 1=是[安全], 0=否。仅在管理员无法登陆后台时设置 0。




// -------------------  THE END  -------------------- //